public class demo05 {
    public static void main(String[] args) {
        // 操作较大数时注意溢出问题
        int money = 5_0000_0000; //500000000
        int year = 20;
        int total = money * year; //1410065408  数据溢出
        long total01 = money * year; // 默认为int 转换之前已经存在问题了
        // 修改:先把一个数转为Long
        long total02 = money * ((long)year);
        System.out.println(total02); //10000000000
    }
}
